<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>{:session('cp.cpsysname')}--服务商管理平台</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
        <meta name="description" content="{:config('webconfig.description');}">
        <meta name="keywords" content="{:config('webconfig.keywords');}">
        <meta name="author" content="runoob">

        <link rel="stylesheet" href="__STATIC_URL__/static/bootstrap/3.3.7/css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/index.css"/>
        <link rel="stylesheet" href="__STATIC_URL__/static/css/addmchat.css" />
        <script src="__STATIC_URL__/static/jquery/2.2.1/jquery.min.js"></script>
        <script src="__STATIC_URL__/static/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    </head>
    <body>
    {include file='public/header'/}
    <section>
        <!------------------导航-------------------------->
        {include file='public/left'/}
        <!--------------------------主要内容区域------------------------------------->
        <div class="content">
            <div class="page-heading mgl15 mgr15">
                <ul class="breadcrumb">
                    <li>当前位置是&nbsp;:&nbsp;</li>
                    <li><a href="#">代理商管理</a></li>
                    <li class="active" style="color: #02b87f;"> 代理商列表</li>
                </ul>
            </div>
            <div class="panel mgl15 mgr15" style="position: relative;">
                <div class="panel-heading addCharts" style="background:#ededed;">代理商列表</div>
                <div class="text-right" style="position: absolute;right: 20px;top: 4px;">
                    <a href="{:url('Agents/agentadd')}" style="display: inline;"><button  class="btn btn-info">添加代理商</button></a>
                </div>
                <div class="panel-body">
                <table class="table table-hover table-bordered">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>服务商名称</th>
                            <th>登入账号</th>

                            <th>手机</th>
                            <th>地址</th>

                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    {volist name="agentlist" id="vo"}
                        <tr class="">
                            <td>{$vo['id']}</td>
                            <td>{$vo['name']}</td>

                            <td>{$vo['contacts']}</td>
                            <td>{$vo['tel']}</td>
                            <td>{$vo['address']}</td>
                            <td>
                        <a href="{:url('agents/agentxg',['id'=>$vo['id']])}" class="btn-link">修改</a>&nbsp;&nbsp;|&nbsp;
                        <a onclick="return confirm('正在删除服务商{$vo['name']},删除后将不可恢复\n是否继续删除')" class="btn-link" href="{:url('agents/delagent',['id'=>$vo['id']])}">删除</a>
                        </td>
                        </tr>
                    {/volist}

                    </tbody>
                </table>
                </div>
                {$agentlist->render()}
            </div>
            {include file='public/footer'/}
        </div>

    </section>


</body>
    <script src="__STATIC_URL__/static/js/commen.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
                            function agentform() {
                                $("#agentform").submit();
                            }
</script>
</html>
